//
//  PayJumpTopCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2018/1/22.
//  Copyright © 2018年 beisheng. All rights reserved.
//

#import "PayJumpTopCell.h"


@interface PayJumpTopCell ()
@property (weak, nonatomic) IBOutlet UIImageView *topImageView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bottomMargin;
@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *labelTop;

@end
@implementation PayJumpTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.bottomMargin.constant = 0;
    
    self.bottomLabel.font = MYFONT(16);
    
    self.bottomLabel.textColor = themeColor;
    // Initialization code
}

- (void)setType:(NSString *)type{
    
    _type = type;
    
    if ([_type isEqualToString:@"fail"]) {
        
        self.topImageView.image = [UIImage imageNamed:@"payFilish00b"];
        
        self.bottomLabel.text = @"啊哦,缴费失败了!";
        
        self.labelTop.constant = 88;

    } else {
        self.topImageView.image = [UIImage imageNamed:@"payFilish00a"];
        self.bottomLabel.text = @"恭喜您,缴费成功!";
        self.labelTop.constant = 100;
    }
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
